package com.woniuxy.mappers;

import com.woniuxy.model.Category;

import java.util.List;

public interface CategoryMapper {
    /**
     * 获取所有分类
     * @return
     */
    public List<Category> findAllCategories();

    /**
     * 添加分类
     * @param category
     * @return
     */
    public int addCategory(Category category);

    /**
     * 删除分类
     * @param id
     * @return
     */
    public int deleteCategoryById(Integer id);
}
